package cc.linker.steplink.crm.merchant.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CategoryDao {

    List<Map<String,Object>> getPList(@Param(value = "orgId") String orgId);

    List<Map<String,Object>> getSList(@Param(value = "pid") Integer pid,@Param(value = "orgId") String orgId);

    List<Map<String,Object>> getAllSList(@Param(value = "pid") Integer pid,@Param(value = "orgId") String orgId);

    Map<String,Object> getDetail(@Param(value = "categoryId") Integer categoryId,@Param(value = "orgId") String orgId);

    Integer getSListCount(@Param(value = "pid") Integer pid,@Param(value = "orgId") String orgId);

    Boolean changeStatus(Map data);

    Boolean addsCategory(Map data);

    Boolean renameSub(Map data);

    Boolean removesCategory(Map data);

    Integer cheackRename(@Param(value = "cateName") String cateName,@Param(value = "orgId") String orgId);

    List<Map<String,Object>> getAttributeList(@Param(value = "categoryId") Integer categoryId,@Param(value = "grade") Integer grade,@Param(value = "pid") Integer pid,@Param(value = "orgId") String orgId);

    Map getGoodsCateAttr(Long goodsId);

    Integer getpcateId(@Param(value = "scateId") Integer scateId,@Param(value = "orgId") String orgId);

    Map getAttrDetail(@Param(value = "attrId") Integer attrId,@Param(value = "orgId") String orgId);

    Integer getGoodsCate(Integer cateId);

    List<Map<String,Object>> getAttrDetailList(@Param(value = "attrIds") String attrIds,@Param(value = "orgId") String orgId);
}
